﻿@model PortalWeb.Areas.Admin.Models.DeleteFunctionViewModel
@{
    Layout = null;
    ViewBag.Title = "删除 功能入口";
}
@using (Ajax.BeginForm("Delete", "Function", new AjaxOptions
{
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "POST",
    OnSuccess = "OnSuccess"
}, new { @class = "form-horizontal", role = "form" }))
{
    @Html.HiddenFor(m => m.Id)
    @Html.HiddenFor(m => m.ParentId)
    @Html.AntiForgeryToken()
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h4 id="myModalLabel" class="modal-title">@ViewBag.Title</h4>
        </div>
        <div class="modal-body">
            <p>
                <i class="fa fa-warning modal-icon"></i>
            </p>
            <div class="form-horizontal ">
                <h4>  您确信要删除此功能入口?</h4>
                @Html.ValidationSummary("", new {@class = "text-danger"})
                <div class="form-group">
                    @Html.LabelFor(m => m.Type, new {@class = "col-md-2 control-label"})
                    <div class="col-md-10">
                        @Html.DisplayFor(m => m.Type, new {@class = "form-control"})
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.FunctionName, new {@class = "col-md-2 control-label"})
                    <div class="col-md-10">
                        @Html.DisplayFor(m => m.FunctionName, new {@class = "form-control"})
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.ActionUrl, new {@class = "col-md-2 control-label"})
                    <div class="col-md-10">
                        @Html.DisplayFor(m => m.ActionUrl, new {@class = "form-control"})
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="submit" class="btn btn-danger">删除</button>
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">取消</button>
        </div>
    </div>
}
